package com.hanhai.material.device.entity;

import com.mybatisflex.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 *  实体类。
 *
 * @author youchuang
 * @since 2023/10/18 11:26:03
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Table(value = "sys_reason",dataSource = "device")
public class SysReason implements Serializable {

    @Id(keyType = KeyType.Auto)
    private Integer id;

    private String reasonName;

    private Integer reasonTypeId;

    private String reasonType;

    private String reasonWorkShop;

    private Date createTime;

    private Date updateTime;

    private String createUserId;

    private String updateUserId;

    @Column(ignore = true)
    private Integer totalNum;
    @RelationOneToMany(selfField = "reasonType",targetField = "reasonType")
    List<SysReason> reasonList;

}
